package com.demo;

import com.demo.interfaces.IFruit;

public class Mango implements IFruit {

    @Override
    public int getTotalPrice(int unitPrice,int weight,int discount) {

        return (int) Math.ceil(unitPrice*weight*(discount/10));
    }
}
